package router

import (
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
	"os_client/logger"
)

func Router() {
	r := gin.Default()
	r.GET("/", func(c *gin.Context) {
		c.Writer.Write([]byte("hello world"))
	})
	err := r.Run(":8081")
	if err != nil {
		logger.Logger.Error("run web server error", zap.Error(err))
	}
}
